package com.onelap.bls.tc2.ble;

import com.blankj.utilcode.constant.PermissionConstants;

import java.util.UUID;

public class BleParams {

    /**
     * 蓝牙权限列表
     */
    public static final String[] BlePermissionList = new String[]{PermissionConstants.LOCATION, PermissionConstants.STORAGE, PermissionConstants.PHONE};


    /**
     * 蓝牙服务IntentAction列表
     */
    public static final String[] BleServiceIntentActions = new String[]{"", ""};


    /**
     * 搜索设备时长
     */
    public static final int Scan_Device_Time = 10000;


    /**
     * 搜索设备状态
     */
    public static enum ScanDeviceStateCode {
        START_SCAN,  //搜索开始
        SCAN_ING,    //搜索中
        STOP_SCAN       //搜索结束
    }


    /**
     * 蓝牙设备连接状态
     */
    public enum DeviceConnectionState {
        STATE_DISCONNECTED,
        STATE_CONNECTING,
        STATE_CONNECTED
    }

    /**
     * Code
     */
    public static class Code {
        public static final int REQUEST_CODE_INTENT_ENABLE_BLUETOOTH = 100;
    }

    public static class StrUUID {

        public static final String CCCD = "00002902-0000-1000-8000-00805f9b34fb";
        public static final String RX_SERVICE_UUID = "6e400001-b5a3-f393-e0a9-e50e24dcca9e";
        public static final String RX_CHAR_UUID = "6e400002-b5a3-f393-e0a9-e50e24dcca9e";
        public static final String TX_CHAR_UUID = "6e400003-b5a3-f393-e0a9-e50e24dcca9e";


        public static final String BATTERY_SERVICE_UUID = "0000180f-0000-1000-8000-00805f9b34fb";
        public static final String BATTERY_LEVEL_UUID = "00002a19-0000-1000-8000-00805f9b34fb";

        public static final String DEVICE_INFO_SERVICE_UUID = "0000180a-0000-1000-8000-00805f9b34fb";
        public static final String VERSION_NAME_UUID = "00002a29-0000-1000-8000-00805f9b34fb";
    }
}
